package com.kara.woodAgent.web.ws;

import io.vertx.core.Vertx;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class VertxConfig {


    @Bean
    public Vertx vert() {
        return Vertx.vertx();
    }


    @Bean(initMethod = "deploy")
    public VertxHttpServer vertxHttpServer(Vertx vertx, HttpServerProperties properties) {
        return new VertxHttpServer(vertx, properties);
    }

}
